import upload from '@/utils/upload'
import request from '@/utils/request'
// 创建ERP 随货同行单项
export function createSupplierSendOrderItem(data) {
  return request({
    url: '/erp/supplier-send-order-item/create',
    method: 'post',
    data: data
  })
}

// 更新ERP 随货同行单项
export function updateSupplierSendOrderItem(data) {
  return request({
    url: '/erp/supplier-send-order-item/update',
    method: 'put',
    data: data
  })
}

// 批量更新ERP 随货同行单项
export function updateSupplierSendOrderItems(data) {
  return request({
    url: '/erp/supplier-send-order-item/updates',
    method: 'put',
    data: data
  })
}

// 删除ERP 随货同行单项
export function deleteSupplierSendOrderItem(id) {
  return request({
    url: '/erp/supplier-send-order-item/delete?id=' + id,
    method: 'delete'
  })
}

// 获得ERP 随货同行单项
export function getSupplierSendOrderItem(id) {
  return request({
    url: '/erp/supplier-send-order-item/get?id=' + id,
    method: 'get'
  })
}

// 获得ERP 随货同行单项分页
export function getSupplierSendOrderItemPage(params) {
  return request({
    url: '/erp/supplier-send-order-item/page',
    method: 'get',
    params
  })
}
// 导出ERP 随货同行单项 Excel
export function exportSupplierSendOrderItemExcel(params) {
  return request({
    url: '/erp/supplier-send-order-item/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}
